#ifndef BIT_WIN_TESTS_STRING_BITWISE_H
#define BIT_WIN_TESTS_STRING_BITWISE_H


#include "bitwin/generic_bitwise.h"
#include "bitwin/generic_bitwise_templates.h"


class StringBitwise: public BitWin::GenericBitwise
{
    const QString _value;

public:

    StringBitwise(const QString& s);

    virtual QString bitwise() const;
    virtual QString hex() const;
    virtual QString dec() const;
};


namespace BitWin
{

template <>
PGenericBitwise GenericBitwise::fromSequence<QString>(const QString& s);

} // BitWin namespace end


#define STRING_BITWISE(s) (GenericBitwise::fromSequence<QString>(s))


#endif
